import com.demo.Controller.CeController;
import com.demo.module.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-05-27
 * Time:2:11
 */
public class ComprehensiveExercise {
    public static void main(String[] args) {
        //1.获取上下文对象
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");

        //2.获取 Bean
        CeController user = context.getBean("ceController", CeController.class);

        //3.展示
        System.out.println(user.GetUser());
    }
}
